package edu.gatech.interaction;
import org.junit.Test;
import static org.junit.Assert.*;

public class ButtonTest {
	public ButtonTest(){}

	@Test
	public void testContains() {
		Button b = new Button(0, 0, 5, 5, "Test Button");
		boolean expResult = true;
        boolean result = b.contains(b.getX(),b.getY());
        assertEquals(expResult, result);
	}
	@Test
    public void testNotContains1() {
		Button b = new Button(0, 0, 5, 5, "Test Button");
		boolean expResult = false;
        boolean result = b.contains(b.getX()+b.getWidth()+1,b.getY());
        assertEquals(expResult, result);
    }
	 @Test
	 public void testNotContains2() {
		 Button b = new Button(0, 0, 5, 5, "Test Button");
		 boolean expResult = false;
	       boolean result = b.contains(b.getX(),b.getY()+b.getHeight()+1);
	        assertEquals(expResult, result);
	    }

}
